//#pragma code
/******************************************************************************
 Project:    Buzzer2000
 Modul:      taster.c
 Descr:      Bearbeitet Tasterbetaetiung

 Date:       07.03.04
 Autor:      ge
 Notes:      -
 ******************************************************************************/

#include "main.h"
#include "port.h"
#include "taster.h"
#include "buzzer_game.h"

//#############################################################################
//Schnittstelle fuer Taster... 0->1 Flanken -----------------------------------
//bit 0: Buzzer-Taster A
//bit 1: Buzzer-Taster B
//bit 2: Buzzer-Taster C
//bit 3: Buzzer-Taster D
//bit 4: Master-Taster 1
//bit 5: Master-Taster 2
//bit 6: Master-Taster 3
void TASTER_vCheck01(uc uc01Flanken) {

	//buzzerA-Taster ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
	if ((uc01Flanken & 0x01) == 0x01) {
		BUZZER_GAME_vBuzzerTriggered(0);
	} //end

	//buzzerB-Taster ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
	if ((uc01Flanken & 0x02) == 0x02) {
		BUZZER_GAME_vBuzzerTriggered(1);
	} //end

	//buzzerC-Taster ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
	if ((uc01Flanken & 0x04) == 0x04) {
		BUZZER_GAME_vBuzzerTriggered(2);
	} //end

	//buzzerD-Taster ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
	if ((uc01Flanken & 0x08) == 0x08) {
		BUZZER_GAME_vBuzzerTriggered(3);
	} //end

	//Master-Unit +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
	//bit 4: Master-Taster 1
	if ((uc01Flanken & 0x10) == 0x10) {

	} //end
	  //bit 5: Master-Taster 2
	if ((uc01Flanken & 0x20) == 0x20) {

	} //end

	//bit 6: Master-Taster 3
	if ((uc01Flanken & 0x40) == 0x40) {

	} //end

	  //...

} //end TASTER_vCheck01()

//################################################################################
void TASTER_vCheck10(uc uc10Flanken) {

}
